package aiingames.simulation.agent;

import aiingames.simulation.server.Server;

import com.vividsolutions.jts.geom.Coordinate;


public class Ball extends Agent {

	public Ball(int id) {
		super(id);
	}

	@Override
	public AgentAction perform(Server serv) {
		Coordinate vv = serv.getAgentVelocityVector(this);
		double v = Math.sqrt(Math.pow(vv.x, 2)+ Math.pow(vv.y, 2))/8;
		return new AgentAction(vv,v);
	}

}
